#include "thrad_1.h"

thrad_1::thrad_1(QTcpSocket *s,QObject *parent)
    : QObject{parent}
{
    socket = s;
}

void thrad_1::run()
{
    // debug() << "Thread 1 is running";
    connect(socket, &QTcpSocket::readyRead, this, &thrad_1::client_info_slot);

}

void thrad_1::client_info_slot()
{
    // socket->readAll();
    qDebug() << socket->readAll();

}